package org.zk.entity;





import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Alicelonely
 * @since 2019-12-11
 */
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;


    private Integer messageId;
    /**
     * 通知内容
     */

    private String messageContext;
    /**
     * 用户外键
     */

    private User user;
    /**
     * 发通知的时间
     */

    private  String messageTime;
    /**
     * 老师外键
     */

    private Teacher teacher;
    /**
     * 管理员外键
     */

    private Admin admin;


    public Integer getMessageId() {
        return messageId;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public String getMessageContext() {
        return messageContext;
    }

    public void setMessageContext(String messageContext) {
        this.messageContext = messageContext;
    }

    @Override
    public String toString() {
        return "Message{" +
                "messageId=" + messageId +
                ", messageContext='" + messageContext + '\'' +
                ", user=" + user +
                ", messageTime='" + messageTime + '\'' +
                ", teacher=" + teacher +
                ", admin=" + admin +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getMessageTime() {
        return messageTime;
    }

    public void setMessageTime(String messageTime) {
        this.messageTime = messageTime;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }
}
